package com.homework.exam02.Config;
/*
 *@Author: helen
 *@Date:   2021/4/17 10:52
 *@Description:
 */

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties (prefix = "exam02.auto")
public class CustomProperties {
    /**
     * 自动装配类是否生效
     */
    private boolean enable;
    public boolean isEnable(){
        return enable;
    }
    public void setEnable(boolean enable) {
        this.enable = enable;
    }
}
